#ifndef _FSM_
#define _FSM_

#include<cstdio>
#include<iostream>
#include<fstream>
#include<sstream>
#include<string>
#include<unistd.h>
#include<errno.h>
#include<sys/epoll.h>
#include<fstream>
#include <sys/stat.h>
#include <fcntl.h>
#include<sys/stat.h>
#include<time.h>


#include"Httpparse.h"

enum Response{
    Res_OK=200,
    Res_NOT_FOUND=404
};

class Fsm{
public:

    static void test(int fd,int epfd);
    static void response(int epfd,struct epoll_event ev);


    static char pwd_path[256];


private:
    static int method_get(const int &epfd,const struct epoll_event &ev,const Httpparse &hp);
    
    static Fsm *fsm;

    Fsm(){}

    ~Fsm(){}

};



#endif
